<?php defined('RUN_KATANA') or die('Restricted access'); ?>
<?php if(defined('AJAX_RUN')): ?>
<?php require('tables/variations_all.php'); ?>
<?php else: ?>
<input type="hidden" name="action" value="editor_product" />
<input type="hidden" name="item" value="<?php echo $shop->CurrentProduct->getId(); ?>" />
<div class="tabs" style="height:100%;">
	<ul>
		<li><a href="#product-info" style="font-size:0.9em;"><?php echo $shop->CurrentProduct->getTitle(); ?> - Info</a></li>
        <?php if($shop->getGlobalSetting('use_stock_units') || 
				 $shop->getGlobalSetting('use_dim_shipping_calculation') || 
				 $shop->getGlobalSetting('attributes')): ?>
		<li><a href="#product-params" style="font-size:0.9em;"><?php echo ucfirst($txt->getWord('properties')); ?></a></li>
        <?php endif; ?>
        <li><a href="#product-images" style="font-size:0.9em;"><?php echo ucfirst($txt->getWord('images')); ?></a></li>
        <li><a href="ajax.php<?php echo $commander->getFormAction(); ?>&view=editor&editor=variations" style="font-size:0.9em;"><?php echo ucfirst($txt->getWord('variations')); ?></a></li>
	</ul>
	<div id="product-info" >
    	<?php require('forms/product_info.php'); ?>
	</div>
    <?php if($shop->getGlobalSetting('use_stock_units') || 
			 $shop->getGlobalSetting('use_dim_shipping_calculation') || 
			 $shop->getGlobalSetting('attributes')): ?>
	<div id="product-params">
    	<?php require('forms/product_params.php'); ?>
	</div>
    <?php endif; ?>
    <div id="product-images">
    	<?php require('forms/product_images.php'); ?>
    </div>
</div>
<?php endif; ?>